export const routerlist = [
  {
    path: "/",
    name: "Layout",
    redirect: "home",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        path: "/home",
        label: "主页",
        name: "Home",
        meta: {
          icon: "shouye",
        },
        component: () => import("@/views/Homes/Home.vue"),
      },
      {
        path: "/manage",
        label: "用户管理",
        meta: {
          icon: "manage",
        },
        redirect: "adminanalaysis",
        children: [
          {
            path: "/adminanalaysis",
            label: "数据分析",
            name: "AdminAnalaysis",
            component: () => import("@/views/admin-analaysis/index.vue"),
          },
          {
            path: "/adminupdate",
            label: "变更管理员数据",
            name: "UpdateAdmin",
            component: () => import("@/views/admin-update/index.vue"),
          },
          {
            path: "/adminpermission",
            label: "权限管理",
            name: "Permission ",
            component: () => import("@/views/admin-permission/index.vue"),
          },
          //用户
          {
            path: "/userboard",
            label: "用户分布看板",
            name: "UserBoard ",
            component: () => import("@/views/user-board/index.vue"),
          },
          {
            path: "/userupdata",
            label: "用户数据变更",
            name: "UserUpDate",
            component: () => import("@/views/user-updata/index.vue"),
          },
        ],
      },
      {
        path: "/check",
        label: "审查",
        meta: {
          icon: "check",
        },
        redirect: "checkfreezerecord",
        children: [
          //违规记录
          {
            path: "/checkfreezerecord",
            label: "用户违规记录",
            name: "CheckFreezeRecord",
            component: () => import("@/views/check-freeze-record/index.vue"),
          },
          //审核记录
          {
            path: "/checkauditlog",
            label: "审核记录",
            name: "CheckAuditlog",
            component: () => import("@/views/check-auditlog/index.vue"),
          },
          //等待审核
          {
            path: "/checkauditing",
            label: "待审核",
            name: "CheckAuditing ",
            component: () => import("@/views/check-auditing/index.vue"),
          },
        ],
      },
      {
        path: "/404",
        meta: {
          hide: true,
        },
        component: () => import("@/views/error-page/404.vue"),
      },
      {
        path: "/401",
        meta: {
          hide: true,
        },
        component: () => import("@/views/error-page/401.vue"),
      },
      
    ],
  },
  {
    path: "/:path(.*)*",
    meta: {
      hide: true,
    },
    component: () => import("@/views/error-page/404.vue"),
  },
];
